package com.eian.boot.module.system.associations.role.permission.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 角色权限分配事件
 * 当角色被分配权限时触发
 *
 * @author alex.meng
 * @since 1.0.0
 */
@Getter
public class RolePermissionAssignedEvent extends ApplicationEvent {

    private final Long roleId;
    private final List<Long> permissionIds;

    public RolePermissionAssignedEvent(Object source, Long roleId, List<Long> permissionIds) {
        super(source);
        this.roleId = roleId;
        this.permissionIds = permissionIds;
    }
}

